.class public Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;
.super Ljava/lang/Object;
.source "TopRunningNavigationBar.java"


# instance fields
.field private ab_button:Landroid/widget/Button;

.field addNaviPoint:Ljava/lang/Runnable;

.field private ctx:Landroid/content/Context;

.field private deflection:Landroid/widget/TextView;

.field empty:Ljava/lang/Runnable;

.field private errorMessage:Ljava/lang/String;

.field private first_text:Landroid/widget/TextView;

.field insufficient_signal:Landroid/widget/ImageView;

.field private lastState:I

.field private left_1:Landroid/widget/ImageView;

.field private left_2:Landroid/widget/ImageView;

.field private left_3:Landroid/widget/ImageView;

.field private letter:Landroid/widget/TextView;

.field private message_holder:Landroid/widget/LinearLayout;

.field mp:Landroid/media/MediaPlayer;

.field private navigation_bar:Landroid/widget/RelativeLayout;

.field private navigation_holder:Landroid/widget/RelativeLayout;

.field onAbClicked:Landroid/view/View$OnClickListener;

.field private right_1:Landroid/widget/ImageView;

.field private right_2:Landroid/widget/ImageView;

.field private right_3:Landroid/widget/ImageView;

.field private second_text:Landroid/widget/TextView;

.field private state:I

.field private units:Ljava/lang/String;

.field private view:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/view/View;)V
    .locals 1

    .line 81
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, -0x1

    .line 62
    iput v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->state:I

    .line 63
    iput v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    const-string v0, ""

    .line 65
    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->errorMessage:Ljava/lang/String;

    const/4 v0, 0x0

    .line 78
    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->mp:Landroid/media/MediaPlayer;

    .line 126
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$1;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$1;-><init>(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->addNaviPoint:Ljava/lang/Runnable;

    .line 136
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$2;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$2;-><init>(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->empty:Ljava/lang/Runnable;

    .line 144
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$3;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$3;-><init>(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->onAbClicked:Landroid/view/View$OnClickListener;

    .line 82
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    .line 83
    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->view:Landroid/view/View;

    .line 84
    invoke-direct {p0, p2}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->initViews(Landroid/view/View;)V

    .line 85
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, " "

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Preferences;->getDeflectionUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->units:Ljava/lang/String;

    const p2, 0x7f100014

    .line 87
    invoke-static {p1, p2}, Landroid/media/MediaPlayer;->create(Landroid/content/Context;I)Landroid/media/MediaPlayer;

    move-result-object p1

    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->mp:Landroid/media/MediaPlayer;

    .line 88
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->mp:Landroid/media/MediaPlayer;

    const p2, 0x3f666666    # 0.9f

    invoke-virtual {p1, p2, p2}, Landroid/media/MediaPlayer;->setVolume(FF)V

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;)Landroid/content/Context;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic access$100(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->first_text:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic access$200(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->letter:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic access$300(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;)Landroid/widget/TextView;
    .locals 0

    .line 27
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->second_text:Landroid/widget/TextView;

    return-object p0
.end method

.method private initViews(Landroid/view/View;)V
    .locals 2

    const v0, 0x7f09018d

    .line 96
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->navigation_bar:Landroid/widget/RelativeLayout;

    const v0, 0x7f090190

    .line 98
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->navigation_holder:Landroid/widget/RelativeLayout;

    const v0, 0x7f090152

    .line 99
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_3:Landroid/widget/ImageView;

    const v0, 0x7f090151

    .line 100
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_2:Landroid/widget/ImageView;

    const v0, 0x7f090150

    .line 101
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_1:Landroid/widget/ImageView;

    const v0, 0x7f0900d0

    .line 103
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->deflection:Landroid/widget/TextView;

    const v0, 0x7f0901da

    .line 105
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_1:Landroid/widget/ImageView;

    const v0, 0x7f0901db

    .line 106
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_2:Landroid/widget/ImageView;

    const v0, 0x7f0901dc

    .line 107
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_3:Landroid/widget/ImageView;

    const v0, 0x7f090179

    .line 111
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->message_holder:Landroid/widget/LinearLayout;

    const v0, 0x7f090110

    .line 112
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->first_text:Landroid/widget/TextView;

    const v0, 0x7f090153

    .line 113
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->letter:Landroid/widget/TextView;

    const v0, 0x7f0901fe

    .line 114
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->second_text:Landroid/widget/TextView;

    const v0, 0x7f090006

    .line 117
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ab_button:Landroid/widget/Button;

    .line 118
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ab_button:Landroid/widget/Button;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->onAbClicked:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f09013b

    .line 120
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->insufficient_signal:Landroid/widget/ImageView;

    .line 121
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->insufficient_signal:Landroid/widget/ImageView;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    return-void
.end method

.method private navigationArrowsVisibility(II)V
    .locals 8

    const/16 v0, 0x258

    .line 345
    div-int/2addr v0, p2

    .line 347
    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_1:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->clearAnimation()V

    .line 348
    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_2:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->clearAnimation()V

    .line 349
    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_3:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->clearAnimation()V

    .line 350
    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_1:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->clearAnimation()V

    .line 351
    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_2:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->clearAnimation()V

    .line 352
    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_3:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->clearAnimation()V

    const v1, 0x7f080103

    const v2, 0x7f0800ff

    if-eqz p1, :cond_e

    const/4 v3, 0x3

    const/4 v4, 0x2

    const/4 v5, 0x1

    if-eq p1, v5, :cond_7

    if-eq p1, v4, :cond_0

    goto/16 :goto_4

    .line 386
    :cond_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_1:Landroid/widget/ImageView;

    const v6, 0x7f080101

    if-lt p2, v5, :cond_1

    const v7, 0x7f080101

    goto :goto_0

    :cond_1
    const v7, 0x7f080103

    :goto_0
    invoke-virtual {p1, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 387
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_2:Landroid/widget/ImageView;

    if-lt p2, v4, :cond_2

    goto :goto_1

    :cond_2
    const v6, 0x7f080103

    :goto_1
    invoke-virtual {p1, v6}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 388
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_3:Landroid/widget/ImageView;

    if-lt p2, v3, :cond_3

    const v1, 0x7f080104

    :cond_3
    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    if-lt p2, v5, :cond_4

    .line 390
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_1:Landroid/widget/ImageView;

    invoke-static {p1, v1, v0}, Llt/noframe/gpsfarmguide/utils/Animations;->fadeInfinite(Landroid/content/Context;Landroid/view/View;I)V

    :cond_4
    if-lt p2, v4, :cond_5

    .line 391
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_2:Landroid/widget/ImageView;

    invoke-static {p1, v1, v0}, Llt/noframe/gpsfarmguide/utils/Animations;->fadeInfinite(Landroid/content/Context;Landroid/view/View;I)V

    :cond_5
    if-lt p2, v3, :cond_6

    .line 392
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_3:Landroid/widget/ImageView;

    invoke-static {p1, p2, v0}, Llt/noframe/gpsfarmguide/utils/Animations;->fadeInfinite(Landroid/content/Context;Landroid/view/View;I)V

    .line 394
    :cond_6
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_1:Landroid/widget/ImageView;

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 395
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_2:Landroid/widget/ImageView;

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 396
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_3:Landroid/widget/ImageView;

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_4

    .line 370
    :cond_7
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_1:Landroid/widget/ImageView;

    const v6, 0x7f0800fd

    if-lt p2, v5, :cond_8

    const v7, 0x7f0800fd

    goto :goto_2

    :cond_8
    const v7, 0x7f0800ff

    :goto_2
    invoke-virtual {p1, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 371
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_2:Landroid/widget/ImageView;

    if-lt p2, v4, :cond_9

    goto :goto_3

    :cond_9
    const v6, 0x7f0800ff

    :goto_3
    invoke-virtual {p1, v6}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 372
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_3:Landroid/widget/ImageView;

    if-lt p2, v3, :cond_a

    const v2, 0x7f080100

    :cond_a
    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    if-lt p2, v5, :cond_b

    .line 374
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_1:Landroid/widget/ImageView;

    invoke-static {p1, v2, v0}, Llt/noframe/gpsfarmguide/utils/Animations;->fadeInfinite(Landroid/content/Context;Landroid/view/View;I)V

    :cond_b
    if-lt p2, v4, :cond_c

    .line 375
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_2:Landroid/widget/ImageView;

    invoke-static {p1, v2, v0}, Llt/noframe/gpsfarmguide/utils/Animations;->fadeInfinite(Landroid/content/Context;Landroid/view/View;I)V

    :cond_c
    if-lt p2, v3, :cond_d

    .line 376
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_3:Landroid/widget/ImageView;

    invoke-static {p1, p2, v0}, Llt/noframe/gpsfarmguide/utils/Animations;->fadeInfinite(Landroid/content/Context;Landroid/view/View;I)V

    .line 378
    :cond_d
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_1:Landroid/widget/ImageView;

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 379
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_2:Landroid/widget/ImageView;

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 380
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_3:Landroid/widget/ImageView;

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_4

    .line 358
    :cond_e
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_1:Landroid/widget/ImageView;

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 359
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_2:Landroid/widget/ImageView;

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 360
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->left_3:Landroid/widget/ImageView;

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 362
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_1:Landroid/widget/ImageView;

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 363
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_2:Landroid/widget/ImageView;

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 364
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->right_3:Landroid/widget/ImageView;

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_4
    return-void
.end method

.method private setState(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIZ)V
    .locals 15

    move-object v0, p0

    move/from16 v1, p2

    move-object/from16 v2, p3

    move-object/from16 v3, p4

    move-object/from16 v4, p5

    move/from16 v5, p7

    if-nez v5, :cond_0

    .line 236
    iget-object v6, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    iget-object v7, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ab_button:Landroid/widget/Button;

    invoke-static {v6, v7}, Llt/noframe/gpsfarmguide/utils/Animations;->popIn(Landroid/content/Context;Landroid/view/View;)V

    goto :goto_0

    .line 238
    :cond_0
    iget-object v6, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ab_button:Landroid/widget/Button;

    invoke-virtual {v6, v5}, Landroid/widget/Button;->setVisibility(I)V

    :goto_0
    const/4 v6, 0x1

    const/4 v7, 0x0

    if-nez v5, :cond_1

    const/4 v5, 0x1

    goto :goto_1

    :cond_1
    const/4 v5, 0x0

    .line 240
    :goto_1
    invoke-virtual {p0, v5}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->adjustGoogleMap(Z)V

    .line 241
    iget-object v5, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ab_button:Landroid/widget/Button;

    invoke-virtual {v5, v3}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 243
    iget-object v5, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->letter:Landroid/widget/TextView;

    move/from16 v8, p6

    if-eq v8, v6, :cond_2

    iget-object v6, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    .line 244
    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v8, 0x7f060135

    invoke-virtual {v6, v8}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    goto :goto_2

    :cond_2
    iget-object v6, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    .line 245
    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v8, 0x7f060137

    invoke-virtual {v6, v8}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    .line 243
    :goto_2
    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setTextColor(I)V

    .line 248
    :try_start_0
    invoke-virtual/range {p0 .. p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->getViewByState(I)Landroid/view/View;

    move-result-object v5

    invoke-virtual {v5}, Landroid/view/View;->clearAnimation()V

    .line 249
    invoke-virtual {p0, v1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->getViewByState(I)Landroid/view/View;

    move-result-object v5

    invoke-virtual {v5}, Landroid/view/View;->clearAnimation()V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    const/16 v5, 0x8

    if-eqz p8, :cond_3

    .line 253
    iget-object v8, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-virtual/range {p0 .. p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->getViewByState(I)Landroid/view/View;

    move-result-object v9

    invoke-virtual {p0, v1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->getViewByState(I)Landroid/view/View;

    move-result-object v10

    const/16 v11, 0x190

    const v12, 0x7f010028

    const v13, 0x7f01002a

    new-instance v14, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$4;

    invoke-direct {v14, p0, v2, v3, v4}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$4;-><init>(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static/range {v8 .. v14}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch;->customAnimation(Landroid/content/Context;Landroid/view/View;Landroid/view/View;IIILlt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$OnfisrtAnimationEndListener;)V

    goto :goto_3

    .line 264
    :cond_3
    invoke-virtual/range {p0 .. p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->getViewByState(I)Landroid/view/View;

    move-result-object v6

    invoke-virtual {v6, v5}, Landroid/view/View;->setVisibility(I)V

    .line 265
    invoke-virtual {p0, v1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->getViewByState(I)Landroid/view/View;

    move-result-object v6

    invoke-virtual {v6, v7}, Landroid/view/View;->setVisibility(I)V

    .line 266
    iget-object v6, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->first_text:Landroid/widget/TextView;

    invoke-virtual {v6, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 267
    iget-object v2, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->letter:Landroid/widget/TextView;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 268
    iget-object v2, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->second_text:Landroid/widget/TextView;

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_3
    if-ne v1, v5, :cond_4

    .line 272
    iget-object v1, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    iget-object v2, v0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->first_text:Landroid/widget/TextView;

    const/16 v3, 0x12c

    invoke-static {v1, v2, v3}, Llt/noframe/gpsfarmguide/utils/Animations;->fadeInfinite(Landroid/content/Context;Landroid/view/View;I)V

    :cond_4
    return-void
.end method

.method private setStateIndeterminate()V
    .locals 2

    .line 224
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->insufficient_signal:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 225
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ab_button:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 226
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->navigation_holder:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 227
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->first_text:Landroid/widget/TextView;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 228
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->letter:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 229
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->second_text:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method


# virtual methods
.method public SetView()V
    .locals 3

    .line 300
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->navigation_bar:Landroid/widget/RelativeLayout;

    const/16 v2, 0xc8

    invoke-static {v0, v1, v2}, Llt/noframe/gpsfarmguide/utils/Animations;->topDown(Landroid/content/Context;Landroid/view/View;I)V

    return-void
.end method

.method public adjustGoogleMap(Z)V
    .locals 5

    .line 410
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v0, 0x7f07012f

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimension(I)F

    move-result p1

    float-to-int p1, p1

    .line 411
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f070150

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F

    move-result v0

    float-to-int v0, v0

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    const-wide/high16 v2, 0x402e000000000000L    # 15.0

    invoke-static {v2, v3, v1}, Llt/noframe/gpsfarmguide/utils/ScreenHelper;->dpToPx(DLandroid/content/Context;)I

    move-result v1

    add-int/2addr v0, v1

    .line 418
    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-static {v1}, Llt/noframe/gpsfarmguide/utils/ScreenHelper;->getScreenOrientation(Landroid/content/Context;)I

    move-result v1

    const/4 v4, 0x2

    if-ne v1, v4, :cond_0

    .line 420
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-static {v2, v3, v0}, Llt/noframe/gpsfarmguide/utils/ScreenHelper;->dpToPx(DLandroid/content/Context;)I

    move-result v0

    .line 424
    :cond_0
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v1

    .line 425
    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object v3

    invoke-virtual {v3}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->getCenter()Landroid/widget/ImageButton;

    move-result-object v3

    add-int/2addr v0, p1

    const/4 v4, 0x0

    invoke-static {v2, v3, v0, v4}, Llt/noframe/gpsfarmguide/utils/ScreenHelper;->setTopMargins(Landroid/content/Context;Landroid/widget/ImageButton;IZ)V

    .line 426
    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    invoke-virtual {v0, v4, p1, v4, v4}, Lcom/google/android/gms/maps/GoogleMap;->setPadding(IIII)V

    return-void
.end method

.method public dissmissError()V
    .locals 2

    .line 210
    iget v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    const/16 v1, 0x8

    if-eq v0, v1, :cond_0

    .line 211
    invoke-virtual {p0, v0}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(I)V

    :cond_0
    return-void
.end method

.method public getState()I
    .locals 1

    .line 405
    iget v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->state:I

    return v0
.end method

.method public getViewByState(I)Landroid/view/View;
    .locals 1

    if-eqz p1, :cond_1

    const/4 v0, 0x6

    if-eq p1, v0, :cond_0

    .line 291
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->message_holder:Landroid/widget/LinearLayout;

    goto :goto_0

    .line 287
    :cond_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->navigation_holder:Landroid/widget/RelativeLayout;

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    :goto_0
    return-object p1
.end method

.method public remove()V
    .locals 4

    .line 436
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->view:Landroid/view/View;

    const v1, 0x7f090267

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 438
    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v3, 0xc8

    invoke-static {v2, v1, v3}, Llt/noframe/gpsfarmguide/utils/Animations;->topUp(Landroid/content/Context;Landroid/view/View;I)V

    .line 439
    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/widget/FrameLayout;

    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    :cond_0
    return-void
.end method

.method public setListenerToMessageHolder(Ljava/lang/Runnable;)V
    .locals 2

    .line 329
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->message_holder:Landroid/widget/LinearLayout;

    new-instance v1, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$5;

    invoke-direct {v1, p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar$5;-><init>(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;Ljava/lang/Runnable;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public setNavigationView(DID)V
    .locals 3

    const-wide/high16 v0, 0x4014000000000000L    # 5.0

    div-double v0, p4, v0

    cmpl-double v2, p1, v0

    if-lez v2, :cond_0

    const/4 v0, 0x2

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    :goto_0
    const-wide/high16 v1, 0x4008000000000000L    # 3.0

    div-double/2addr p4, v1

    cmpl-double v1, p1, p4

    if-lez v1, :cond_1

    const/4 v0, 0x3

    .line 320
    :cond_1
    invoke-direct {p0, p3, v0}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->navigationArrowsVisibility(II)V

    .line 321
    iget-object p3, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->units:Ljava/lang/String;

    invoke-static {p1, p2, p3}, Llt/noframe/gpsfarmguide/utils/Mathematics;->convertAccuracy(DLjava/lang/String;)D

    move-result-wide p1

    .line 322
    new-instance p3, Ljava/text/DecimalFormat;

    const-string p4, "#0.00"

    invoke-direct {p3, p4}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    .line 323
    iget-object p4, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->deflection:Landroid/widget/TextView;

    new-instance p5, Ljava/lang/StringBuilder;

    invoke-direct {p5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p3, p1, p2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object p1

    const-string p2, ","

    const-string p3, "."

    invoke-virtual {p1, p2, p3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->units:Ljava/lang/String;

    invoke-virtual {p5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p4, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setState(I)V
    .locals 12

    .line 153
    iget v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->state:I

    if-eq v0, p1, :cond_1

    .line 154
    iput v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    .line 155
    iput p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->state:I

    const v0, 0x7f110101

    const v1, 0x7f110123

    const v2, 0x7f1101ba

    packed-switch p1, :pswitch_data_0

    :pswitch_0
    goto/16 :goto_0

    .line 198
    :pswitch_1
    iget v4, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    iget-object v6, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->errorMessage:Ljava/lang/String;

    const/4 v9, 0x1

    const/16 v10, 0x8

    const/4 v11, 0x1

    const-string v7, ""

    const-string v8, ""

    move-object v3, p0

    move v5, p1

    invoke-direct/range {v3 .. v11}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIZ)V

    .line 199
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->empty:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setListenerToMessageHolder(Ljava/lang/Runnable;)V

    goto/16 :goto_0

    .line 192
    :pswitch_2
    iget v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    const/4 v6, 0x1

    const/16 v7, 0x8

    const/4 v8, 0x1

    const-string v3, ""

    const-string v4, ""

    const-string v5, ""

    move-object v0, p0

    move v2, p1

    invoke-direct/range {v0 .. v8}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIZ)V

    .line 193
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->empty:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setListenerToMessageHolder(Ljava/lang/Runnable;)V

    goto/16 :goto_0

    .line 186
    :pswitch_3
    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->mp:Landroid/media/MediaPlayer;

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->start()V

    .line 187
    :cond_0
    iget v3, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    const/4 v8, 0x2

    const/4 v9, 0x0

    const/4 v10, 0x0

    const-string v6, "B"

    const-string v7, ""

    move-object v2, p0

    move v4, p1

    invoke-direct/range {v2 .. v10}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIZ)V

    .line 188
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->addNaviPoint:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setListenerToMessageHolder(Ljava/lang/Runnable;)V

    goto/16 :goto_0

    .line 181
    :pswitch_4
    iget v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-virtual {v2, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v6, 0x2

    const/16 v7, 0x8

    const/4 v8, 0x0

    const-string v4, "B"

    const-string v5, ""

    move-object v0, p0

    move v2, p1

    invoke-direct/range {v0 .. v8}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIZ)V

    .line 182
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->empty:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setListenerToMessageHolder(Ljava/lang/Runnable;)V

    goto/16 :goto_0

    .line 176
    :pswitch_5
    iget v1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    const v2, 0x7f110103

    invoke-virtual {v0, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v6, 0x2

    const/4 v7, 0x0

    const/4 v8, 0x1

    const-string v4, "A"

    const-string v5, ""

    move-object v0, p0

    move v2, p1

    invoke-direct/range {v0 .. v8}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIZ)V

    .line 177
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->addNaviPoint:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setListenerToMessageHolder(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 171
    :pswitch_6
    iget v3, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-virtual {v0, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x1

    const/16 v7, 0x8

    const/4 v8, 0x1

    const-string v9, "B"

    move-object v0, p0

    move v1, v3

    move v2, p1

    move-object v3, v4

    move-object v4, v9

    invoke-direct/range {v0 .. v8}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIZ)V

    .line 172
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->empty:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setListenerToMessageHolder(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 166
    :pswitch_7
    iget v3, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->lastState:I

    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-virtual {v0, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->ctx:Landroid/content/Context;

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x1

    const/16 v7, 0x8

    const/4 v8, 0x1

    const-string v9, "A"

    move-object v0, p0

    move v1, v3

    move v2, p1

    move-object v3, v4

    move-object v4, v9

    invoke-direct/range {v0 .. v8}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIZ)V

    .line 167
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->empty:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setListenerToMessageHolder(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 160
    :pswitch_8
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setStateIndeterminate()V

    .line 161
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->empty:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setListenerToMessageHolder(Ljava/lang/Runnable;)V

    const/4 p1, 0x0

    .line 162
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->adjustGoogleMap(Z)V

    :cond_1
    :goto_0
    return-void

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_8
        :pswitch_7
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public showError(Ljava/lang/String;)V
    .locals 0

    .line 216
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->errorMessage:Ljava/lang/String;

    const/16 p1, 0x8

    .line 217
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(I)V

    return-void
.end method
